package com.monkey.model.monkey;

import com.monkey.generator.model.TMonkeyBonus;

import java.math.BigDecimal;
import java.text.SimpleDateFormat;

/**
 * desc:
 * auth: chenxiaobin
 * data: 2018/1/16.
 */
public class MonkeyBonus {
    private BigDecimal bonus;
    private String createtime;

    public MonkeyBonus(TMonkeyBonus bonus, SimpleDateFormat sdf) {
        this.bonus = bonus.getBonus();
        this.createtime = sdf.format(bonus.getCreatetime());
    }

    public BigDecimal getBonus() {
        return bonus;
    }

    public String getCreatetime() {
        return createtime;
    }
}
